package com.assess.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("assess_indicator_weight")
@ApiModel(value = "AssessIndicatorWeight", description = "评估-AHP权重结果（父对子）")
public class AssessIndicatorWeight {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("父指标ID")
    private Long parentId;

    @ApiModelProperty("方案/项目ID，可为空用于区分不同方案")
    private Long schemeId;

    @ApiModelProperty("子指标ID")
    private Long childId;

    @ApiModelProperty("矩阵版本号")
    private Integer version;

    @ApiModelProperty("局部权重（归一化后）")
    private Double weight;

    @ApiModelProperty("最大特征值（可选）")
    private Double lambdaMax;

    @ApiModelProperty("一致性指标CI（可选）")
    private Double ci;

    @ApiModelProperty("一致性比例CR（可选）")
    private Double cr;

    @ApiModelProperty(value = "创建时间", example = "2025-01-01 12:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
}


